package db

import scala.reflect.BeanProperty

/**
 * represents a table in the database that contains data about clients.
 */
class Client {
  
  @BeanProperty
  var userID : java.lang.Long = _
  @BeanProperty
  var clientID : java.lang.Long = _
  
  override def equals(that: Any): Boolean = {
    if (false==that.isInstanceOf[Client])
      return false
    val client = that.asInstanceOf[Client]
    if (this.userID == client.userID && this.clientID == client.clientID)
      return true
    return false
  }
  
  override def toString : String = ("uid="+userID+",cid="+clientID)
}
